/**
 * 
 */
package lt.vin.currency.client.ui;

import lt.vin.currency.shared.Rate;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Label;

/**
 * @author Vincentas
 *
 */
public class CurrencyInfo extends Composite {

	private Image flag;
	
	private Label buyPrice;
	
	private Label sellPrice;
	
	public CurrencyInfo(Rate rate) {
		HorizontalPanel panel = new HorizontalPanel();
		
		flag = new Image();
		buyPrice = new Label(rate.getBuy().toString());
		sellPrice = new Label(rate.getSell().toString());
		
		panel.add(flag);
		panel.add(buyPrice);
		panel.add(sellPrice);
		
		initWidget(panel);
	}
}
